package cn.echoparrot.domain.entity;

import org.springframework.ai.chat.messages.Message;

import java.util.List;

public class Conversation{
    private final String conversationId;
    private final List<Message> messages;

    public Conversation(String conversationId, List<Message> messages){
        this.conversationId = conversationId;
        this.messages = messages;
    }

    public List<Message> history() {
        return messages;
    }

    public String conversationId() {
        return conversationId;
    }
}
